<template>
  <div>
    <div class="headerWrapper">
      <span class="iconfont iconnew"></span>
      <div class="seachWrapper">
        <span class="iconfont iconsearch"></span>
        <div class="seachText" @click="$router.push('/search')">搜索新闻</div>
      </div>
      <span class="iconfont iconwode" @click="$router.push('/profile')"></span>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.headerWrapper {
  display: flex;
  align-items: center;
  padding: 0 10 / 360 * 100vw;
  background-color: red;
  color: #fff;
  .iconnew {
    font-size: 54 / 360 * 100vw;
  }
  .seachWrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(225, 225, 225, 0.5);
    margin: 0 20 / 360 * 100vw;
    height: 38 / 360 * 100vw;
    border-radius: 19 / 360 * 100vw;
    .seachText {
      padding-left: 5 / 360 * 100vw;
    }
  }
  .iconwode {
    font-size: 26 / 360 * 100vw;
    opacity: 0.5;
  }
}
</style>